package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.CardtypeDao;
import io.renren.modules.generator.entity.CardtypeEntity;
import io.renren.modules.generator.service.CardtypeService;



@Service("cardtypeService")
public class CardtypeServiceImpl implements CardtypeService {
	@Autowired
	private CardtypeDao cardtypeDao;
	
	@Override
	public CardtypeEntity queryObject(Integer code){
		return cardtypeDao.queryObject(code);
	}
	
	@Override
	public List<CardtypeEntity> queryList(Map<String, Object> map){
		return cardtypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cardtypeDao.queryTotal(map);
	}
	
	@Override
	public void save(CardtypeEntity cardtype){
		cardtypeDao.save(cardtype);
	}
	
	@Override
	public void update(CardtypeEntity cardtype){
		cardtypeDao.update(cardtype);
	}
	
	@Override
	public void delete(Integer code){
		cardtypeDao.delete(code);
	}
	
	@Override
	public void deleteBatch(Integer[] codes){
		cardtypeDao.deleteBatch(codes);
	}
	
}
